@/*
    select标签中各个参数的说明:
    name : select的名称
    id : select的id
    changeFun : 数值改变的方法名
    underline : 是否带分割线
    pCode : 上级code
@*/
<div class="form-group">
    <label class="col-sm-3 control-label">${name}</label>
    <div class="col-sm-9">
   		 
        <select class="form-control" id="${id}" name="${id}"
        	@if(isNotEmpty(changeFun)){
                    onchange="${changeFun}"
             @}
             @if(isNotEmpty(pCode)){
                    pCode="${pCode}"
             @}
             
             @if(isNotEmpty(selectedCode)){
                    selectedCode="${selectedCode}"
             @}
             
        >
        </select>
        
        @if(isNotEmpty(hidden)){
            <input class="form-control" type="hidden" id="${hidden}" value="${hiddenValue!}">
        @}
    </div>
</div>
@if(isNotEmpty(underline) && underline == 'true'){
    <div class="hr-line-dashed"></div>
@}
<script src="${ctxPath}/static/modular/common.js"></script>
<script type="text/javascript">
$(function () {
	//var selectArr = $("select");
	// for(var se=0;se<selectArr.length;se++){//循环整个input数组
    //     var select =selectArr[se];//取到每一个input
     //    var data = 
      //  	 Common.queryDictList(
      //  			 $("#"+select.id).attr("pCode"),
      //  			 select.id,
       // 			 $("#"+select.id).attr("selectedCode")
       // 			 );
    // }
	 
	var select = $("#${id}");
	var data = 
       	 Common.queryDictList(
       			select.attr("pCode"),
       			select.attr("id"),
       			select.attr("selectedCode")
       	);
	
});
</script>

